import React, {Component} from 'react';
import {Breadcrumb, Divider} from "antd";
import {HeartTwoTone} from "@ant-design/icons";
import {Link} from "react-router-dom";

class Index extends Component {
  render() {
    return (
      <>
        <Breadcrumb separator={<HeartTwoTone twoToneColor="#eb2f96"/>}>
          <Breadcrumb.Item>
            <Link to={'/home'}>首页</Link>
          </Breadcrumb.Item>
          <Breadcrumb.Item>{this.props.title}</Breadcrumb.Item>
        </Breadcrumb>
        <Divider/>
      </>
    );
  }
}

export default Index;
